package  entity;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;



@Entity
@Table(name="produce_step_example")
public class ProduceStepExample {
	private String rowid;
	private int indexnum;
	private String name;
	private String productId;
	private String stepId;
	private String produceExampleId;
	private boolean flag;
	private Timestamp time;
	/** default constructor */
	public ProduceStepExample() {
	}

	/** minimal constructor */
	public ProduceStepExample(String rowid) {
		this.rowid = rowid;
	}

	/** full constructor */
	public ProduceStepExample(String rowid,int indexnum,
			String name, String productId, String stepId,
			String produceExampleId,boolean flag,Timestamp time) {
		this.rowid = rowid;
		this.name = name;
		this.indexnum=indexnum;
		this.productId=productId;
		this.stepId=stepId;
		this.produceExampleId=produceExampleId;
		this.flag=flag;
		this.time=time;
	}
	@Id
	@GeneratedValue(generator = "system-uuid")  
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	@Column(name="rowid")
	public String getRowid() {
		return rowid;
	}

	public void setRowid(String rowid) {
		this.rowid = rowid;
	}
	@Column(name="indexnum")
	public int getIndexnum() {
		return indexnum;
	}

	public void setIndexnum(int indexnum) {
		this.indexnum = indexnum;
	}
	@Column(name="name")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	@Column(name="productId")
	public String getProductId() {
		return productId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}
	@Column(name="stepId")
	public String getStepId() {
		return stepId;
	}

	public void setStepId(String stepId) {
		this.stepId = stepId;
	}
	@Column(name="produceExampleId")
	public String getProduceExampleId() {
		return produceExampleId;
	}

	public void setProduceExampleId(String produceExampleId) {
		this.produceExampleId = produceExampleId;
	}
	@Column(name="flag")
	public boolean isFlag() {
		return flag;
	}

	public void setFlag(boolean flag) {
		this.flag = flag;
	}
	@Column(name="time")
	public Timestamp getTime() {
		return time;
	}

	public void setTime(Timestamp time) {
		this.time = time;
	}
	
}
